//
//  SCMarcoUI.h
//  Shuaiche
//
//  Created by dangshuai on 2019/1/9.
//  Copyright © 2019 zzs. All rights reserved.
//

#ifndef SCMarcoUI_h
#define SCMarcoUI_h

#define SC_HEX_A(h,a)       [UIColor colorWithRed:((h>>16)&0xff)/255. green:((h>>8)&0xff)/255. blue:(h&0xff)/255. alpha:a]
#define SC_HEX(h)           SC_HEX_A (h,1)

#define SC_RGB(r,g,b)       [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:1]
#define SC_RGBA(r,g,b,a)    [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:a]

// Text Black
#define SC_TextBlack_Primary    SC_RGB( 34, 34, 34)     // #333
#define SC_TextBlack_Secondary  SC_RGB(105,105,105)     // #666
#define SC_TextBlack_Third      SC_RGB(153,153,153)     // #999

// Text Red
#define SC_TextRed_Primary  SC_RGB(237, 84, 46) //  #ed542e

// Text Yellow
#define SC_TextYellow       SC_RGB(249,152,2)   //  #f99802
#define SC_BgYellow         SC_RGB(255,224,1)   //  #ffe001
#define SC_TextGolden       SC_RGB(165,99,72)
// Text Green
#define SC_TextGreen        SC_RGB(110,204,73)      //  #6ECC49
#define SC_TextGreen_Alpha(a)  SC_RGBA(110,204,73,a)

//Tag
#define SC_Tag_Orange          SC_HEX(0xFBBC33)
#define SC_Tag_Orange_Alpha(a) SC_HEX_A(0xFBBC33,a)
#define SC_Tag_Blue            SC_HEX(0x25A2F0)
#define SC_Tag_Blue_Alpha(a)   SC_HEX_A(0x25A2F0,a)
#define SC_Tag_Green           SC_HEX(0x6ECC49)
#define SC_Tag_Green_Alpha(a)  SC_HEX_A(0x6ECC49,a)
#define SC_Tag_Red             SC_TextRed_Primary
#define SC_Tag_Red_Alpha(a)    SC_HEX_A(0xed542e,a)
#define SC_Tag_Yellow          SC_TextYellow
#define SC_Tag_Yellow_Alpha(a) SC_HEX_A(0xf99802,a)

// View Color
#define SC_Color_Tint       SC_RGB(255,222,0)   //  #ffde00
#define SC_Color_BG         SC_RGB(249,249,249) //  #f9f9f9
#define SC_Color_Separator  SC_RGB(228,228,228) //  #e4e4e4
#define SC_Color_Yellow     SC_RGB(255,219,27)  //  #FFDB1B

#define SC_Color_NavWhite   [UIColor whiteColor]
#define SC_Color_NavGray    SC_RGB(249,249,249) //  #f9f9f9
#define SC_Color_Warn      SC_RGB(237,84,46)   //  #ed542e

// Font System
#define SC_FONT(f)          [UIFont systemFontOfSize:f]
#define SC_FONT_Meduim(f)   [UIFont systemFontOfSize:f weight:UIFontWeightMedium]
#define SC_FONT_Bold(f)     [UIFont boldSystemFontOfSize:f]
#define SC_FONT_DinB(f)     [UIFont fontWithName:@"DINAlternate-Bold" size:f]
#define SC_FONT_Semibold(f) [UIFont systemFontOfSize:f weight:UIFontWeightSemibold]

// Font ShuaiChe
#define SC_Font_Head        [UIFont systemFontOfSize:18]
#define SC_Font_SubHead     [UIFont systemFontOfSize:15]
#define SC_Font_Title       [UIFont systemFontOfSize:14]
#define SC_Font_Subtitle    [UIFont systemFontOfSize:13]
#define SC_Font_Subject     [UIFont systemFontOfSize:12]
#define SC_Font_Slight      [UIFont systemFontOfSize:10]

// Selected BgColor
#define SC_Default_Selected_Bg SC_HEX(0xF9F9F9)

#define AllowGestureViewTag      999

#define NAVIGATIONBAR_FONT              17.0f                 //导航栏的字体大小

#define APP_BACKGROUNDCOLOR      @"#F6F6F6"            //APP baseviewcontroller的背景颜色/*@"#ECEDF1"*/

#define DARK_GRAY_COLOR          @"#333333"           // 深灰色
#define NORMAL_GRAY_COLOR        @"#666666"           // 灰色
#define LIGHT_GRAY_COLOR         @"#999999"           // 浅灰色
#define LIGHT_GRAY_LINE_COLOR    @"#E9E9E9"           // 下划线浅灰色


#endif /* SCMarcoUI_h */

/**
 ** 板块渐变色  #fedf32 -> #fddb01
 */
